<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>密码找回</title>
    <!--<link href="/static/H/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">-->
    <link href="/static/H/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/H/css/animate.css" rel="stylesheet">
    <link href="/static/H/css/style.css?v=4.1.0" rel="stylesheet">
</head>




<body class="gray-bg">

    <div class="tab-content">

        <div id="tab-2" class="tab-pane">
            <div class="middle-box text-center loginscreen  animated fadeInDown">
                    <h3>密码更改</h3>
                    <form class="m-t" role="form" action="{:url('admin/sign/modPassword')}" method="post">

                        <div class="form-group">
                            <input type="password" id="n1" name = "password" class="form-control" autocomplete="off" placeholder="输入新的密码" required="">
                        </div>
                        <div class="form-group">
                            <input type="password" id="n2" name = 'password2' class="form-control" autocomplete="off" placeholder="再次输入密码" required="">
                        </div>

                        <button type="button" id="send" class="btn btn-primary block full-width m-b">提交</button>
                    </form>
            </div>
        </div>
    </div>

</div>


<script src="/static/H/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/H/js/bootstrap.min.js?v=3.3.6"></script>
<script type="text/javascript" src="/static/ui/lib/layer/3.1/layer.js"></script>



    <script>
        $('#send').click(function () {

            $.post('{url(admin/sign/modPassword)}',{password:$('#n1').val(),password2:$("#n2").val()},function (e) {
                if (e.code){
                    alert(e.info);
                } else {
                    alert(e.info);
                }
            })

        })

    </script>


</body>

</html>